package com.qfedu.service.impl;

import com.qfedu.entity.AuthEntity;
import com.qfedu.mapper.AuthPojoMapper;
import com.qfedu.pojo.AuthPojo;
import com.qfedu.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AuthServiceimpl implements AuthService {
    @Autowired
    private AuthPojoMapper authPojoMapper;
    @Override
    public List<AuthPojo> queryAllAuth(AuthEntity authEntity) {
        List<AuthPojo> authlist = authPojoMapper.queryAllAuth(authEntity);
        return authlist;
    }

    @Override
    public Boolean deleteAuthById(String auidstr) {
        auidstr="("+auidstr+")";
        Boolean aBoolean = authPojoMapper.deleteAuthById(auidstr);
        return aBoolean;
    }
}
